package com.hawk.eye.server.domain.dto.req;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;
import java.util.Date;

/**
 *
 * @author salad
 * @date 2023-10-23
 */
@Data
public class ProblemRecordReqDTO {

    private static final long serialVersionUID = 1L;

    /**
     *
     */
    private Long id;

    /**
     *
     */
    private String traceId;

    /**
     *
     */
    private String serviceId;


    /**
     *
     */
    private Long baseAlarmId;


    private String problemName;
    /**
     *
     */
    private Long disposeUser;

    /**
     *
     */
    private String problemDesc;

    /**
     *
     */
    private String problemCause;

    /**
     *
     */
    private String resolveDesc;

    /**
     *
     */
    private String stackHash;

    /**
     *
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime recordTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime alarmTime;
    /**
     *
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime resolveTime;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime[] alarmTimes;

    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime[] recordTimes;

    /**
     *
     */
    private String problemType;
    /**
     *
     */
    private String problemLevel;


    private Integer[] problemStatus;

    private Integer[] problemCauses;

    private Integer[] problemLevels;

}
